<%@ page language="java" contentType="text/html; charset=utf8" pageEncoding="utf8"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<div class="user">Управление категориями.</div>
<br/>
<table cellpadding="0" border="1" bordercolor="#000000" width="95%" cellspacing="0">
	<c:forEach items="${listtype}" var="type">
		<tr>
			<td width="150" class="list_user_head">Категория</td>
			<td width="350" align="left" class="list_user" >${type.getName()}</td>
			<td width="350" align="center" >
				<form method="POST" >
					<input type="text" class="hidenell" readonly name="id" value="${type.getId()}" />	
					<input type="image" class="button" src="/CoffiSweetDreams/butttons/del.png" >
				</form>
			</td>
		</tr>
		</c:forEach>
		<tr>
			<td height="40" colspan="3" > </td>
		</tr>
		<form:form method="POST" commandName="dishtype" >
		<tr >
			<td class="list_user_head">
				Категория
			</td>
			<td align="left">
				<form:input path="name" id="name" class="inputbox" />
			</td>
			<td align="center">
				<input type="image" class="button" src="/CoffiSweetDreams/butttons/add.png" >
			</td>
		</tr>
		</form:form>
</table>





